package com.ketangpai.mapper;

/**
 * @author jiahao
 * @date 2024/2/18 18:41
 */
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.jdbc.SQL;

import java.util.List;

public class CourseSqlProvider {

    public String getCourses(@Param("courseIds") List<String> courseIds) {
        return new SQL() {{
            SELECT("*");
            FROM("course");
            WHERE("courseId IN (" + String.join(",", courseIds) + ")");
        }}.toString();
    }
}
